package cn.jdy.plugins.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;

import cn.jdy.common.bo.BaseEntry;

/**
 * @desc   试题实体
 * @author ningqian
 * @date   2016-7-5
 */
@Entity
public class ExamQuestions extends BaseEntry implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)//根据数据库自动适配 mysql默认自增
	private Long id;              //主键
	private Long projectId;       //项目id
	private String projectName;   //项目名称
	private String questionName;  //题干
	private String labelName;     //测评标签（基础数据表）
	private Integer sort;        //显示顺序
	private String insertTime;    //添加时间
	private Integer isRadio ;    //是否单选 1是  2不是
	@Transient
	private List<ExamOptions> eqlist;    //选项
	@Transient
	private List<LinkedHashMap<String, Object>>    mplis=new ArrayList<LinkedHashMap<String, Object>>();    //选项


	 
	public List<LinkedHashMap<String, Object>> getMplis() {
		return mplis;
	}
	public void setMplis(List<LinkedHashMap<String, Object>> mplis) {
		this.mplis = mplis;
	}
	public List<ExamOptions> getEqlist() {
		return eqlist;
	}
	public void setEqlist(List<ExamOptions> eqlist) {
		this.eqlist = eqlist;
	}
	public Integer getIsRadio() {
		return isRadio;
	}
	public void setIsRadio(Integer isRadio) {
		this.isRadio = isRadio;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getProjectId() {
		return projectId;
	}
	public void setProjectId(Long projectId) {
		this.projectId = projectId;
	}
	public String getProjectName() {
		return projectName;
	}
	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
	public String getLabelName() {
		return labelName;
	}
	public void setLabelName(String labelName) {
		this.labelName = labelName;
	}
	public String getQuestionName() {
		return questionName;
	}
	public void setQuestionName(String questionName) {
		this.questionName = questionName;
	}
	
	public Integer getSort() {
		return sort;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	public String getInsertTime() {
		return insertTime;
	}
	public void setInsertTime(String insertTime) {
		this.insertTime = insertTime;
	}
	
}
